<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp" %>

<% 

    String loginNo=request.getParameter("loginNo");

   Connection conn=getConn();
   String sql="select * from sys_manager where loginNo=?";
   PreparedStatement pstmt=conn.prepareStatement(sql);
   pstmt.setString(1, loginNo);
   ResultSet rs=pstmt.executeQuery();
   
   String rs_loginNo ="";
   String rs_managerName  ="";
   String rs_department ="";
   String rs_password ="";
   String rs_telephone ="";


   if(rs.next()){
	   
	 	   rs_loginNo =rs.getString("loginNo");
	       rs_managerName  =rs.getNString("managerName");
	       rs_department  =rs.getNString("department");
	       rs_password  =rs.getNString("password");
	       rs_telephone  =rs.getNString("telephone");
	    
	   
   }

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>密码登录修改</title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<link rel="shortcut icon" href="images/logo.jpg">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
<script type="text/javascript">
		if(window.parent!=window){
		 	window.parent.location.href=window.location.href;
		}
	</script>
<script>
function editsuccess(){
	alert("可爱的学生你好，你已成功修改自己的登录账号密码可重新修改！");
}
</script>
</head>

<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>密码登录修改</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="page/student/action_editstudentlogin.jsp" >  
      <div class="form-group">
        <div class="label">
          <label>我的学号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_loginNo %>" name="loginNo"  data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>登录密码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_password %>" name="password" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
       
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit" onclick="editsuccess()"> 提交</button>
         <button class="button bg-main icon-check-square-o" type="button" onclick="window.location.href='studentindex.jsp'">返回</button></form>
        </div>
      </div>
    </form>
  </div>
</div>

</body>
</html>
